package com.tsy.server.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tsy.server.system.entity.User;
import com.tsy.server.system.entity.vo.UserListVO;
import com.tsy.server.system.entity.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户Mapper接口
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    Page<UserListVO> selectOrgUserList(Page<UserListVO> page, @Param("orgId") Long orgId, @Param("userVO") UserVO userVO);

    String getUserCurrentOrgRoleKey(@Param("userId") Long userId, @Param("orgId") Long orgId);
}